#ifndef __CIRCLE_SEGMENT_H__
#define __CIRCLE_SEGMENT_H__


#include "../Global.h"
#include "../PhysicSystem/PhysicObject.h"
#include "../PhysicSystem/PhysicManager.h"
#include "Circle.h"

#include "CircleDefine.h"

class Circle;

class CircleSegment : public CCSprite
{
public:
	CircleSegment( );
	virtual ~CircleSegment( );


	void	initWithType				( SEGMENT_TYPE type , float radius , COLOR_TYPE colorType = kColorTypeNone );
	
	void	setRadius					( float radius );
	void	unActive					( );

	inline
	float	getRadius					( )
	{
		return m_fRadius;
	}

	CREATE_SET_GET( COLOR_TYPE , m_tColorType , ColorType );
	CREATE_SET_GET( SEGMENT_TYPE , m_tType , Type );
	//CREATE_SET_GET( float , m_fRadius , Radius );
	CREATE_SET_GET( bool , m_bIsDestroy , IsDestroy );
	CREATE_SET_GET( PhysicObject* , m_pPhysicObj , PhysicObject );

private:
	float				m_fRadius;

	void	initWithSprite				( );
};


#endif